package com.dk.service.impl;

import com.dk.pojo.CooperativeMerchant;
import com.dk.mapper.CooperativeMerchantMapper;
import com.dk.service.CooperativeMerchantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 帅杰
 * @since 2021-08-13
 */
@Service
public class CooperativeMerchantServiceImpl extends ServiceImpl<CooperativeMerchantMapper, CooperativeMerchant> implements CooperativeMerchantService {

    @Autowired
    private CooperativeMerchantMapper cooperativeMerchantMapper;

    @Override
    public List<CooperativeMerchant> toSelect() {
        return cooperativeMerchantMapper.selectList(null);
    }

    @Override
    public CooperativeMerchant toSelectById(Long next) {
        return cooperativeMerchantMapper.selectById(next);
    }
}
